#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
    if (argc<1)
        return 0;
    long total, inside, i;
    float x,y;
    total=atoi(argv[1]);
    inside=0;
    for (i = 0; i <total ; ++i) {
        x=drand48();
        y=drand48();
        if (y<=x*x)
            inside++;
    }
    printf("%f\n",1.0*inside/total);

}
